<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html lang="zh-CN">
    
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
        <title>
            提出问题 - SegmentFault
        </title>
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/global.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/qa.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/responsive.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/sf_typeHelper.css">
        
        <!--[if lt IE 9]>
            <link rel="stylesheet" href="https://sf-static.b0.upaiyun.com/v-57c4094c/global/css/ie.css"
            />
            <script src="https://sf-static.b0.upaiyun.com/v-57c4094c/global/script/html5shiv.js">
            </script>
            <script src="https://sf-static.b0.upaiyun.com/v-57c4094c/global/script/respond.js">
            </script>
        <![endif]-->
    </head>
    
    <body data-mod="qa" class="qa-ask ">
        <!--[if lt IE 9]>
            <div class="alert alert-danger topframe" role="alert">
                你的浏览器实在
                <strong>
                    太太太太太太旧了
                </strong>
                ，放学别走，升级完浏览器再说
                <a target="_blank" class="alert-link" href="http://browsehappy.com">
                    立即升级
                </a>
            </div>
        <![endif]-->
        <img id="icon4weChat" style="height: 0;width: 0;" data-src="https://sf-static.b0.upaiyun.com/v-57c4094c/global/img/touch-icon-512.png">
        <img id="icon4weChat" data-src="https://sf-static.b0.upaiyun.com/v-57c4094c/global/img/touch-icon-512.png">
        <div class="sf-header global-nav shadow-bottom publish">
            <nav class="container nav">
                <div class="hidden-sm hidden-lg hidden-md">
                    <div class="sf-header__logo sf-header__logo--response">
                        <h1>
                            <a>
                            </a>
                        </h1>
                    </div>
                    <div class="dropdown m-menu">
                        <a href="javascript:void(0);" id="dLabel" class="visible-xs-block m-toptools"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-align-justify">
                            </span>
                            <span class="mobile-menu__unreadpoint">
                            </span>
                        </a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <li class="mobile-menu__item">
                                <a href="/questions/newest">
                                    问答
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/blogs">
                                    文章
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/user/note">
                                    笔记
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/jobs">
                                    职位
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/events">
                                    活动
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/tags">
                                    标签
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/users">
                                    榜单
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/sites">
                                    子站
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/user/notifications">
                                    消息
                                    <span class="pull-right badge mt4" id="m-messageCount">
                                    </span>
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="/api/user/logout?_=4f3074b19a3f6a16c2dbda3f80728263">
                                    退出
                                </a>
                            </li>
                        </ul>
                    </div>
                    <a href="/ask" class="visible-xs-block pull-right m-ask m-toptools">
                        <span class="glyphicon glyphicon-pencil">
                        </span>
                    </a>
                </div>
                <div class="row hidden-xs">
                    <div class="col-sm-6">
                        <div class="sf-header__logo">
                            <h1>
                                <a href="/">
                                    SegmentFault
                                </a>
                            </h1>
                            <small>
                                提问
                            </small>
                        </div>
                    </div>
                    <div class="col-sm-6 text-right">
                        <ul class="opts  list-inline hidden-xs">
                            <li class="opts__item user dropdown hoverDropdown">
                                <img class="dropdownBtn user-avatar" id='user-avatar_face' data-toggle="dropdown" src="/p201604/seg/seg<?php echo $_SESSION['face'] ?> ">
                                <ul class="dropdown-menu dropdown-menu-right" style="margin-top:-1px">
                                        <li>
                                            <a href="<?php echo U('home/user/show');?>">
                                                我的主页
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/user/about');?>">
                                                我的档案
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/user/settings');?>">
                                                账号设置
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/login/loginout');?>">
                                                退出
                                            </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="https://board.segmentfault.com/">
                                                建议反馈
                                            </a>
                                        </li>
                                        <li>
                                            <a class="js__action--complain" href="javascript:void(0);">
                                                用户申诉
                                            </a>
                                        </li>
                                        <script type="text/template" id="js__action--complain-tpl">
                                            < form class = "complain__form"method = "post"action = "/api/appeals/add" > <div class = "form-group" > <label > 理由 < /label><textarea name="description" class="form-control"
                                                                  rows="3"></textarea > </div></form > 
                                        </script>
                                    </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </nav>
        </div>
        <div class="wrap publish">
            <div class="container">
<!-- <script type="text/javascript" src="/p201604/seg/seg/Public/js/jquery-2.0.2.js"></script> -->
<script type="text/javascript" src='/p201604/seg/seg/Public/js/jquery.min.js'></script>
<script type="text/javascript" src="/p201604/seg/seg/Public/ueditor/ueditor.config.js"></script>    
<script type="text/javascript" src="/p201604/seg/seg/Public/ueditor/ueditor.all.min.js"></script>
<script>
// 开启编辑器功能
$(function(){
    var ue = UE.getEditor('container',{
        serverUrl :'<?php echo U('home/question/ueditor');?>'
    });
})
</script>
                <form id="question" method="POST" role="form" action="<?php echo U('home/question/add');?>">
                    <div class="form-group">
                        <label for="title" class="sr-only">
                            标题
                        </label>
                        <input id="myTitle" type="text" name="title" required data-error="" autocomplete="off"
                        class="form-control tagClose input-lg" placeholder="标题：一句话说清问题，用问号结尾" value="">
                    </div>
                    <div id="titleSuggest" class='panel hidden widget-suggest panel-default'>
                        <div class="panel-body">
                            <p>
                                <strong>
                                    这些问题可能有你需要的答案
                                </strong>
                                <button type="button" class="widget-suggest__close btn btn-default btn-xs">
                                    关闭提示
                                </button>
                            </p>
                            <ul id="qList" class="list-unstyled widget-suggest__list">
                            </ul>
                        </div>
                    </div>
                    <div class="form-group ">
                        <label for="tags" class="sr-only">
                            标签：至少1个，最多5个
                        </label>
                        <input class="tagsInput form-control" data-init="null" name="tags" type="text"
                        placeholder="点击下面分类，一个问题可以对应多个分类" data-role="tagsinput" />

                        <div class="sf-typeHelper" style="display:none">
                            
                            <input type="text" data-role="sf_typeHelper-input" class="sf-typeHelper-input"
                            placeholder="点击下面分类，一个问题可以对应多个分类" style="width: 20em;">
                            <ul class="sf-typeHelper-list dropdown-menu" style="display: none;">
                            </ul>
                        </div>
                        <div role="tabpanel" class="techTags panel panel-default techTags-panel"
                        data-tech='' style="display:none">
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active">
                                    <a href="#开发语言" aria-controls="type" role="tab" data-toggle="tab">
                                        开发语言
                                    </a>
                                </li>
                            </ul>
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane active" id="开发语言">
                                    <ul class="taglist--inline">
                                        <?php foreach ($categorys as $row) { ?>
                                            <li class="mb5">
                                                <a class="tag" data-name='<?php echo $row['cname'] ?>' data-id='<?php echo $row['id'] ?>'
                                                href="javascript: void(0);">
                                                    <?php echo $row['cname'] ?>
                                                </a>
                                            </li>
                                        <?php } ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="questionText" class="editor">
                    <div  id="container" style="height:400px;"></div>
                    </div>
                    <div class=" publish-footer">
                        <div class="container">
                            <div class="operations clearfix">
                                <div class="shareToWeibo checkbox pull-left mr10 mb0">
                                    <label for="shareToWeibo">
                                        <input type="checkbox" id="shareToWeibo" />
                                        同步到新浪微博
                                    </label>
                                </div>
                                <div class="pull-right">
                                    <span class="text-muted hidden" id="editorStatus">
                                        已保存
                                    </span>
                                    <a id="dropIt" href="javascript:void(0);" class="mr10 hidden">
                                        [舍弃]
                                    </a>
                                    <button data-toggle="tooltip" data-placement="top" title="" type="submit"
                                    data-type="question" id="publishIt" class="btn btn-primary ml10" data-id=""
                                    data-do="" data-url="" data-text="发布问题" data-name="" />
                                    发布问题
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <!-- /.container -->
        </div>
        <footer id="footer">
            <div class="container">
                <div class="row hidden-xs">
                    <dl class="col-sm-2 site-link">
                        <dt>
                            网站相关
                        </dt>
                        <dd>
                            <a href="/about">
                                关于我们
                            </a>
                        </dd>
                        <dd>
                            <a href="/tos">
                                服务条款
                            </a>
                        </dd>
                        <dd>
                            <a href="/faq">
                                帮助中心
                            </a>
                        </dd>
                        <dd>
                            <a href="/repu">
                                声望与权限
                            </a>
                        </dd>
                        <dd>
                            <a href="/markdown">
                                编辑器语法
                            </a>
                        </dd>
                        <dd>
                            <a href="//weekly.segmentfault.com/">
                                每周精选
                            </a>
                        </dd>
                        <dd>
                            <a href="/app">
                                App 下载
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            联系合作
                        </dt>
                        <dd>
                            <a href="/contact">
                                联系我们
                            </a>
                        </dd>
                        <dd>
                            <a href="/hiring">
                                加入我们
                            </a>
                        </dd>
                        <dd>
                            <a href="/link">
                                合作伙伴
                            </a>
                        </dd>
                        <dd>
                            <a href="/press">
                                媒体报道
                            </a>
                        </dd>
                        <dd>
                            <a href="https://board.segmentfault.com/">
                                建议反馈
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            常用链接
                        </dt>
                        <dd>
                            <a href="//chrome.google.com/webstore/detail/segmentfault-%E7%AC%94%E8%AE%B0/pjklfdmleagfaekibdccmhlhellefcfo"
                            target="_blank">
                                笔记插件: Chrome
                            </a>
                        </dd>
                        <dd>
                            <a href="//addons.mozilla.org/zh-CN/firefox/addon/sf-note-ext/" target="_blank">
                                笔记插件: Firefox
                            </a>
                        </dd>
                        <dd>
                            订阅：
                            <a href="/feeds">
                                问答
                            </a>
                            /
                            <a href="/feeds/blogs">
                                文章
                            </a>
                        </dd>
                        <dd>
                            <a href="//mirrors.segmentfault.com/" target="_blank">
                                文档镜像
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/blog/interview" target="_blank">
                                社区访谈
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/d-day" target="_blank">
                                D-DAY 技术沙龙
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/hackathon" target="_blank">
                                黑客马拉松 Hackathon
                            </a>
                        </dd>
                        <dd>
                            <a href="//namebeta.com/" target="_blank">
                                域名搜索注册
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            关注我们
                        </dt>
                        <dd>
                            <a href="//github.com/SegmentFault" target="_blank">
                                Github
                            </a>
                        </dd>
                        <dd>
                            <a href="//twitter.com/segment_fault" target="_blank">
                                Twitter
                            </a>
                        </dd>
                        <dd>
                            <a href="http://weibo.com/segmentfault" target="_blank">
                                新浪微博
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/blog/segmentfault_team" target="_blank">
                                团队日志
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/blog/segmentfault" target="_blank">
                                产品技术日志
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/blog/community_admin" target="_blank">
                                社区运营日志
                            </a>
                        </dd>
                        <dd>
                            <a href="//segmentfault.com/blog/segmentfault_news" target="_blank">
                                市场运营日志
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-4 site-link" id="license">
                        <dt>
                            内容许可
                        </dt>
                        <dd>
                            除特别说明外，用户内容均采用
                            <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by-sa/3.0/cn/">
                                知识共享署名-相同方式共享 3.0 中国大陆许可协议
                            </a>
                            进行许可
                        </dd>
                        <dd>
                            本站由
                            <a target="_blank" href="https://www.upyun.com/?utm_source=segmentfault&utm_medium=link&utm_campaign=upyun&md=segmentfault">
                                又拍云
                            </a>
                            提供 CDN 存储服务
                        </dd>
                    </dl>
                </div>
                <div class="copyright">
                    Copyright &copy; 2011-2016 SegmentFault. 当前呈现版本 16.08.25
                    <br>
                    <a href="http://www.miibeian.gov.cn/" rel="nofollow">
                        浙ICP备 15005796号-2
                    </a>
                    &nbsp;
                    <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602002000"
                    rel="nofollow">
                        浙公网安备 33010602002000号
                    </a>
                </div>
                <p class="text-center">
                    <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="mobile"
                    href="javascript:;">
                        移动版
                    </a>
                    <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="desktop"
                    href="javascript:;">
                        桌面版
                    </a>
                </p>
            </div>
        </footer>
        <div id="fixedTools" class="hidden-xs hidden-sm">
            <a id="backtop" class="hidden border-bottom" href="#">
                回顶部
            </a>
            <div class="qrcodeWraper">
                <a href="/app#qrcode">
                    <span class="glyphicon glyphicon-qrcode">
                    </span>
                </a>
                <img id="qrcode" class="border" alt="sf-wechat" src="https://sf-static.b0.upaiyun.com/v-57c4094c/page/img/app/appQrcode.png">
                <p class="qrcode-text">
                    扫扫下载 App
                </p>
            </div>
        </div>
        <div class="app-promotion-bar">
            <a href="javascript:;">
                <i class="fa fa-close close">
                </i>
            </a>
            <div class="icon">
            </div>
            <h5 class="title h5">
                SegmentFault
            </h5>
            <p class="describe">
                一起探索更多未知
            </p>
            <a class="download-btn btn btn-sm btn-primary" href="/app#qrcode">
                下载 App
            </a>
        </div>


     <script type="text/javascript">
         $(function  (argument) {
             $('.hoverDropdown').hover(function() {
                $(this).children('.dropdown-menu').show();
             }, function() {
                $(this).children('.dropdown-menu').delay('500').hide();
             });
         })

         $('.tagsInput').focus(function(event) {
             this.remove();
             $('.sf-typeHelper').show();
             $('.techTags').show();

         });

         $('.mb5 a').click(function(event) {
            name = $(this).attr('data-name');
            id = $(this).attr('data-id');

            str = '<span class="sf-typeHelper-item  ">'+name+'<span class="xbsclose" data-role="remove">×</span><input type="hidden" name="cid[]" value="'+id+'"></span>';

            $('.sf-typeHelper').prepend(str);

         });


        $(".sf-typeHelper").on("click",".sf-typeHelper-item .xbsclose", function() {
             $(this).parent().remove();
         });
            
     </script> 
    </body>


</html>